package com.sanjiayi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;

@Data
@TableName("chat_message")
public class ChatMessage {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Integer senderId;
    private Integer receiverId;
    private String content;
    private Date createTime;
    private Boolean isRead;
    
    // 消息类型: TEXT, IMAGE, etc.
    private String messageType;
    
    // 构造函数
    public ChatMessage() {
        this.createTime = new Date();
        this.isRead = false;
        this.messageType = "TEXT";
    }
} 